package com.gzx.bi.modular.repayment.client.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import com.gzx.bi.modular.repayment.client.entity.GzxRepaymentClient;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author zjt
 * @description
 * @date 2025/4/9 14:00
 */
@Data
@AutoMapper(target = GzxRepaymentClient.class)
public class GzxRepaymentClientVo implements TransPojo {
    /**
     * 自增主键
     */
    private Long id;

    /**
     * 项目编码
     */
    @Trans(type = TransType.DICTIONARY, key = "project", ref = "projectName")
    private String projectCode;

    private String projectName;

    /**
     * 欠款人用户编号
     */
    private String debtorUserNo;

    /**
     * 还款时间
     */
    private String repaymentDate;

    /**
     * 还款金额
     */
    private BigDecimal repaymentAmount;

    /**
     * 逾期日期
     */
    private String overdueDate;

    /**
     * 逾期天数
     */
    private Integer overdueDays;

    /**
     * 批次
     */
    private String batch;

    /**
     * 所属公司
     */
    @Trans(type = TransType.RPC, targetClassName = "vip.xiaonuo.sys.modular.org.entity.SysOrg", fields = "name", alias = "deptId", ref = "deptName", serviceName = "snowy-web-app")
    private String deptId;

    private String deptName;
}
